//云认养套餐
import { COMBO_LIST, COMBO_STATUS_DICT } from '@/const/type';
export const tableOption = {
  ...window.$crudMixins.tableOptions,
  addBtn: false,
  editBtn: false,
  delBtn: false,
  menuWidth: 180,
  viewBtn: false,
  column: [
    {
      label: '套餐类型',
      prop: 'type',
      type: 'select',
      dicData: COMBO_LIST,
    },
    {
      label: '产品周期',
      prop: 'cycleNumber',
      formatter: (row) => {
        return `${row.cycleNumber}${row.cycleUnit === '1' ? '个月' : '年'}`;
      },
    },
    {
      label: '价格',
      prop: 'price',
      formatter: (row) => {
        return `￥${row.price || 0}`;
      },
    },
    {
      label: '状态',
      prop: 'status',
      search: true,
      type: 'select',
      dicData: COMBO_STATUS_DICT,
    },
    {
      label: '创建时间',
      prop: 'createTime',
    },
  ],
};
